package com.cool.modules.cooperate.entity;

import com.cool.core.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Table;
import com.tangzc.mybatisflex.autotable.annotation.ColumnDefine;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@Table(value = "base_sys_finance", comment = "机构管理-金融机构")
public class BaseSysFinance extends BaseEntity<BaseSysFinance> {
    @ColumnDefine(comment = "创建用户id")
    private Long createUid;

    @ColumnDefine(comment = "更新人id")
    private Long updateUid;

    @ColumnDefine(comment = "合作方id")
    private Long cooperateId;

    @ColumnDefine(comment = "金融机构编号")
    private String financeNo;

    @ColumnDefine(comment = "金融机构名称")
    private String financeName;

    @ColumnDefine(comment = "统一社会信用代码")
    private String creditNo;

    @ColumnDefine(comment = "营业执照有效期，2099年表示长期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date licenseStartTime;

    @ColumnDefine(comment = "营业执照有效期，2099年表示长期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date licenseEndTime;

    @ColumnDefine(comment = "营业执照")
    private String licenseImg;

    @ColumnDefine(comment = "联系人姓名")
    private String linkName;

    @ColumnDefine(comment = "联系人身份证号码")
    private String linkCard;

    @ColumnDefine(comment = "联系人手机号")
    private String linkPhone;

    @ColumnDefine(comment = "0-未开设账号 1-已开设账号")
    private Integer accountStatus;

    @ColumnDefine(comment = "登录账号")
    private String account;

    @ColumnDefine(comment = "账号关联的id")
    private Long accountId;

    @ColumnDefine(comment = "0-禁用 1-启用")
    private Integer status;

    @ColumnDefine(comment = "有效期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date validDate;

    @ColumnDefine(comment = "是否支持定时结算0-否 1-是")
    private Integer timeSettlement;

    @ColumnDefine(comment = "是否支持线上支付0-否 1-是")
    private Integer onlineSettlement;

    @ColumnDefine(comment = "是否支持抵押权人代理人支付0-否 1-是")
    private Integer managerPay;

    @ColumnDefine(comment = "是否支持抵押人/抵押人代理人支付0-否 1-是")
    private Integer wechatPay;

}
